home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Shareware / Comunicatii / feedaemon / fd110rc5.exe / {app} / Data / defaults / styles / Dotbox Gray.fdxsl < prev    next >
Extensible Markup Language  |  2004-05-28  |  3KB  |  70 lines

  1. <?xml version="1.0"?>
  2.  
  3. <xsl:stylesheet version="1.0"
  4.     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.     xmlns:fd="http://www.bradsoft.com/feeddemon/xmlns/1.0/">
  6. <xsl:output method="html"/>
  7.  
  8. <xsl:template match="newspaper">
  9.     <html>
  10.     <head>
  11.         <title>Newspaper</title>
  12.         <style type="text/css">
  13.             body {
  14.                 font: 80%/15pt "Trebuchet MS", Tahoma, sans-serif;
  15.                 margin: 0;
  16.                 margin-bottom: 12px;
  17.                 color: #1F1F1F;
  18.                 background-color: #EFEFEF;
  19.             }
  20.             a { color: #434343;  }
  21.             a:hover { color: #6F94C3; }
  22.             a:visited { color: #747474; }
  23.             span.nodescription {    font-size: x-small; color: silver;}
  24.             div.newspapertitle { font-weight: bold; font-size: 130%; text-align: center; margin: 16px 2px; }
  25.             div.newsitem { border: 1px dashed #696969; padding: 10px 18px; margin: 7px 10px; background-color: #FDFDFD; }
  26.             div.newsitemtitle { font-weight: bold; padding-bottom: 10px} 
  27.             div.newsitemcontent { text-align: justify; }
  28.             div.newsitemfooter { font-size: xx-small; text-align: right; }
  29.         </style>
  30.     </head>
  31.     <body>
  32.         <div class="newspapertitle">
  33.             <xsl:value-of select="title" disable-output-escaping="yes"/>
  34.         </div>
  35.         <xsl:variable name="newspapertype" select="@type"/>
  36.         <xsl:for-each select="channel/item">
  37.             <xsl:sort select="title"/>
  38.             <div class="newsitem">
  39.                <div class="newsitemtitle">
  40.                     <xsl:variable name="itemlink" select="link"/>
  41.                    <a href="{$itemlink}"><xsl:value-of select="title" disable-output-escaping="yes"/></a>
  42.                 </div>            
  43.                 <div class="newsitemcontent">
  44.                     <xsl:value-of select="description" disable-output-escaping="yes"/>
  45.                 </div>
  46.                 <div class="newsitemfooter">
  47.                     <xsl:variable name="srclink" select="source/@htmlUrl"/>
  48.                     [ <xsl:value-of select="fd:dateDisplay"/> | <a href="{$srclink}"><xsl:value-of select="source"/></a>
  49.                     <!-- add link to comments if available -->
  50.                     <xsl:if test="comments">
  51.                         <xsl:variable name="commentlink" select="comments"/>
  52.                         <xsl:variable name="commentimg" select="'$IMAGEDIR$comments.gif'"/>
  53.                         | <a href="{$commentlink}"><img src="{$commentimg}" border="0" hspace="6"/></a>
  54.                     </xsl:if>
  55.                     <!-- add link to enclosure if available -->
  56.                     <xsl:if test="enclosure">
  57.                         <xsl:variable name="enclosurelink" select="enclosure/@url"/>
  58.                         <xsl:variable name="enclosureimg" select="'$IMAGEDIR$enclosure.gif'"/>
  59.                         | <a href="{$enclosurelink}"><img src="{$enclosureimg}" border="0" hspace="6"/></a>
  60.                     </xsl:if>
  61.                     ]
  62.                 </div>
  63.             </div>
  64.         </xsl:for-each>
  65.     </body>
  66.     </html>    
  67. </xsl:template>
  68.  
  69.  
  70. </xsl:stylesheet>